package org.dromara.comm_lhz.controller;

import org.dromara.comm_lhz.entity.dto.MenuDto;
import org.dromara.comm_lhz.entity.vo.MenuVO;
import org.dromara.comm_lhz.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 全局模糊查询 返回路由
 */

@RestController
@RequestMapping("selMenu")
public class MenuController {

    @Autowired
    private MenuService menuService;
    //全局模糊查询
    @PostMapping("/global_search")
    public List<MenuVO> globalSearch(@RequestBody MenuDto menuDto) {
        return menuService.globalSearch(menuDto);
    }


}
